package org.example.demo.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Slf4j
@Aspect
@Component
@Order(3)
public class AspectDemo4 {

    @Before("org.example.demo.aspect.AspectDemo.pt()")
    public void doBefore() {
        log.info("执行 AspectDemo4 -> Before 方法");
    }

    @After("org.example.demo.aspect.AspectDemo.pt()")
    public void doAfter() {
        log.info("执行 AspectDemo4 -> doAfter 方法");
    }

}
